DXS SET SPRITE DEPTH SCALE

Sets the sprite depth scale.
The depth of a sprite is its priority when during the render by the graphic card. A depth of 0 indicates that the sprite will be rendered first, a higher depth indicates a posteriro render order. Sets a depth when drawing a sprite allows to does not care of its priority in the source code.
the depth must be superorior or equal to 1.
Note : Two sprites with a different depth scale, but the same drawing won't be drawn following the same order.

Syntax

DXS SET SPRITE DEPTH SCALE Sprite Pointer, Depth Scale


AdvancedSPRITES : Commands Menu